package cn.outsourcing.supermarket.converter;

import cn.outsourcing.supermarket.converter.transform.TimestampTransform;
import cn.outsourcing.supermarket.po.HiolabsFootprint;
import cn.outsourcing.supermarket.vo.FootPrintVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 足迹对象转换器
 *
 * @author gzkemays
 * @since 2021/10/23 3:51
 */
@Mapper(uses = {TimestampTransform.class})
public interface HiolabsFootPrintConverter {
  HiolabsFootPrintConverter INSTANCE = Mappers.getMapper(HiolabsFootPrintConverter.class);

  /**
   * 足迹对象转化为带商品的足迹
   *
   * @param footprintList 原足迹 po 对象
   * @return 带商品的足迹
   */
  List<FootPrintVO> convertToFootGoodsPrint(List<HiolabsFootprint> footprintList);
}
